package cn.com.zj.rpc;

import cn.com.zj.rpc.api.IUserService;
import cn.com.zj.rpc.pojo.User;
import cn.com.zj.rpc.proxy.MyRpcProxy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 测试类
 */
@SpringBootApplication
public class ClientBootStrapApplication {
    public static void main(String[] args) {
//        IUserService userService = (IUserService) MyRpcProxy.createProxy(IUserService.class,"127.0.0.1",9999);
//        User user = userService.getById(1);
//        System.out.println(user);
        SpringApplication.run(ClientBootStrapApplication.class, args);
    }
}
